package com.me.mysqladmin.entity;

import java.io.Serializable;

/**
 * 字段信息
 * @author dong
 *
 */
public class TableField implements Serializable {
	private static final long serialVersionUID = 1L;

	// 列名
	private String column_name;
	
	// 列类型
	private String column_type;
	
	// 列长度
	private Integer column_len;
	
	// 允许为空（NULL,NOT NULL）
	private String is_nullable;
	
	// 键
	private String column_key;
	
	// 默认值
	private String column_default;
	
	// 额外属性
	private String extra;
	
	// 字段说明
	private String column_comment;
	
	// 自增列（如果值=AUTO_INCREMENT，则为自增列，否则不是）
	private String auto_increment;

	public String getColumn_name() {
		return column_name;
	}

	public void setColumn_name(String column_name) {
		this.column_name = column_name;
	}

	public String getColumn_type() {
		return column_type;
	}

	public void setColumn_type(String column_type) {
		this.column_type = column_type;
	}

	public String getIs_nullable() {
		return is_nullable;
	}

	public void setIs_nullable(String is_nullable) {
		this.is_nullable = is_nullable;
	}

	public String getColumn_key() {
		return column_key;
	}

	public void setColumn_key(String column_key) {
		this.column_key = column_key;
	}

	public String getColumn_default() {
		return column_default;
	}

	public void setColumn_default(String column_default) {
		this.column_default = column_default;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	public Integer getColumn_len() {
		return column_len;
	}

	public void setColumn_len(Integer column_len) {
		this.column_len = column_len;
	}

	public String getColumn_comment() {
		return column_comment;
	}

	public void setColumn_comment(String column_comment) {
		this.column_comment = column_comment;
	}

	public String getAuto_increment() {
		return auto_increment;
	}

	public void setAuto_increment(String auto_increment) {
		this.auto_increment = auto_increment;
	}

	@Override
	public String toString() {
		return "TableField [column_name=" + column_name + ", column_type="
				+ column_type + ", column_len=" + column_len + ", is_nullable="
				+ is_nullable + ", column_key=" + column_key
				+ ", column_default=" + column_default + ", extra=" + extra
				+ ", column_comment=" + column_comment + ", auto_increment="
				+ auto_increment + "]";
	}
}
